package com.security.demo.repository;

import com.security.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * 用于查询数据库
 * @author  zwj
 * @date    2020/08/19
 * @version 1.0
 */
public interface UserRepository extends JpaRepository<User,Integer> {

        /**
         * 通过username查找user信息
         * @param username
         * @return
         */
        User findByUsername(String username);
}
